package com.dy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dy.domain.Living;
import com.dy.service.LivingService;
import com.dy.mapper.LivingMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 须尽欢
* @description 针对表【living】的数据库操作Service实现
* @createDate 2024-12-05 14:26:14
*/
@Service
public class LivingServiceImpl extends ServiceImpl<LivingMapper, Living>
    implements LivingService {

    @Override
    public void add(Living living) {
        baseMapper.insert(living);
    }

    @Override
    public List<Living> findAll() {
        return baseMapper.selectList(null);
    }


}




